package com.qq.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {


    @RequestMapping("/")
    public String showIndex(){
        return "pagehome/index";
    }

    @RequestMapping("/register")
    public String showRegister(){
        return "pagehome/register";
    }
    @RequestMapping("/login")
    public String showLogin(){
        return "pagehome/login";
    }
    @RequestMapping("/update")
    public String showupdate(){
        return "pagehome/update";
    }
    @RequestMapping("/backPass")
    public String showLobackPass(){
        return "pagehome/backPass";
    }

    @RequestMapping("/shortrent")
    public String showshortrent(){
        return "shortRent/shortrent";
    }

    @RequestMapping("/shortsort")
    public String showshortsort(String getid, String backid, Model model){
        model.addAttribute("getid",getid);
        model.addAttribute("backid",backid);
        return "shortRent/shortsort";
    }
    @RequestMapping("/ordersubmit")
    public String showordersubmit(){
//        model.addAttribute("getid",getid);
//        model.addAttribute("backid",backid);
//        model.addAttribute("cid",cid);
        return "order/ordersubmit";
    }
    @RequestMapping("/loginsuccess")
    public String showLoginsuccess(){
        return "pagehome/loginsuccess";
    }

    @RequestMapping("/admin")
    public String admin(){
        return "admin/admin";
    }
    /**
     * 显示用户清单
     * @return
     */
    @RequestMapping("/userList")
    public String showuserList(){
        return "admin/userList";
    }
    @RequestMapping("/mymain")
    public String mymain(){
        return "mymain/mymain";
    }
    @RequestMapping("/myinfo")
    public String myinfo(){
        return "mymain/myinfo";
    }
}
